<?php
/**
 * 
 * @authors Your Name (you@example.org)
 * @date    2018-12-06 12:37:12
 * @version $Id$
 */

header("Access-Control-Allow-Origin:*");
header("Content-Type:application/json;charset=utf-8");

$HOST="127.0.0.1";
$ROOT="root";
$PWD="";
$dbName="gyq";
$PORT="3306";
$conn=new mysqli($HOST,$ROOT,$PWD,$dbName,$PORT);

// 编码
mysqli_query($conn,"set names utf8");